/*
*Copyright 2021-2023 NERCIS
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software
*distributed under the License is distributed on an "AS IS" BASIS,
*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*See the License for the specific language governing permissions and
*limitations under the License.
*/

package cn.ac.nercis.pes.model.dto.evaluation.prepare;

import cn.ac.nercis.pes.model.dto.evaluation.content.plan.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

/**
 * 测评阶段信息类
 * @author zpy
 * @version 1.0.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class EvaluationStageDTO {
    /**
     * 系统ID
     */
    private String systemId;
    /**
     * 测评准备阶段开始时间
     */
    @Builder.Default
    private LocalDate preparationStartDate = LocalDate.now();
    /**
     * 测评准备阶段结束时间
     */
    @Builder.Default
    private LocalDate preparationEndDate = LocalDate.now();
    /**
     * 方案编制阶段开始时间
     */
    @Builder.Default
    private LocalDate compilationStartDate = LocalDate.now();
    /**
     * 方案编制阶段结束时间
     */
    @Builder.Default
    private LocalDate compilationEndDate = LocalDate.now();
    /**
     * 现场测评阶段开始时间
     */
    @Builder.Default
    private LocalDate evaluationStartDate = LocalDate.now();
    /**
     * 现场测评阶段结束时间
     */
    @Builder.Default
    private LocalDate evaluationEndDate = LocalDate.now();
    /**
     * 分析与报告编制阶段开始时间
     */
    @Builder.Default
    private LocalDate analysisStartDate = LocalDate.now();
    /**
     * 分析与报告编制阶段结束时间
     */
    @Builder.Default
    private LocalDate analysisEndDate = LocalDate.now();

    /**
     * 准备过程，测评计划详情
     */
    @Builder.Default
    private PreparationPlanDetailDTO preparationPlan = new PreparationPlanDetailDTO();
    /**
     * 方案编制过程，测评计划详情
     */
    @Builder.Default
    private CompilationPlanDetailDTO compilationPlan = new CompilationPlanDetailDTO();
    /**
     * 测评实施过程，测评计划详情
     */
    @Builder.Default
    private EvaluationPlanDetailDTO evaluationPlan = new EvaluationPlanDetailDTO();
    /**
     * 分析与报告编制过程，测评计划详情
     */
    @Builder.Default
    private AnalysisPlanDetailDTO analysisPlan = new AnalysisPlanDetailDTO();
}